package com.dj.dormitory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author DJ同学
 * @since 2021-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_dormitory")
@NoArgsConstructor
public class Dormitory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer no;

    private Integer storeyId;

    private Integer buildingId;

    public Dormitory(Integer no, Integer storeyId, Integer buildingId) {
        this.no = no;
        this.storeyId = storeyId;
        this.buildingId = buildingId;
    }
}
